package cn.skyquant.quant4j.api.economics;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class EconomicsEventDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    public Integer id;
    public String publicTime;
    public Date   datetime;
    public String country;
    public String city;
    public Integer star;
    public String people;
    public String eventcontent;
    public Integer determine;
    public String note;
    public String url;
    public Date recordTime;
    public Date updatedTime;
    public int updatedNum;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof EconomicsEventDTO)) return false;
        EconomicsEventDTO that = (EconomicsEventDTO) o;
        return Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
